package smb.domain;

import lombok.Data;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Data
public class Score {
    @Id
    private int id;
    private double usual;
    private double midterm;
    private double experiment;
    private double terminal;
    private double total;
    @Column(name = "time_stamp")
    private Timestamp timestamp;
    @ManyToOne
    @JoinColumn(name = "sec_id")
    private Section section;
    @ManyToOne
    @JoinColumn(name = "stu_id")
    private Student student;
}
